#ifndef DISPLACEMENTCHART_H
#define DISPLACEMENTCHART_H
#include "basechart.h"

class DisplacementChart : public BaseChart
{
public:
    DisplacementChart(QCustomPlot* _customPlot);

    virtual void setDisplaceData(QSharedPointer<QVector<float>> _pDisplace=nullptr);

    void updateChart(const float& y);

    void resetAxis();

private:
    void initChart();
    QSharedPointer<QVector<float>> pDisplace;
    QVector<double> xXias;
    QVector<double> yXias;

    ulong yAxisCounter;
};

#endif // DISPLACEMENTCHART_H
